Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-44763: Stop using db_session_dependency in UWS #177

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Jun 14, 2024

db_session_dependency provided by Safir is by definition a singleton. Previously, the UWS layer used it to talk to the UWS database, but a service using the UWS layer may want its own database connection for other purposes and the UWS layer was monopolizing it. Fix this by creating a separate database engine and session inside the UWS layer.

db_session_dependency provided by Safir is by definition a singleton.
Previously, the UWS layer used it to talk to the UWS database, but
a service using the UWS layer may want its own database connection
for other purposes and the UWS layer was monopolizing it. Fix this
by creating a separate database engine and session inside the UWS
layer.
@rra rra merged commit 9ff841b into main Jun 14, 2024
3 checks passed
@rra rra deleted the tickets/DM-44763 branch June 14, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant